<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
</head>
<body>
    <script>
        let fn=(a,b)=>{
            console.log(a,b);
        }
        fn(1,2)

        //箭头函数只有一个形参
        let fn1=a=>{
            console.log(a);
        }
        fn1(3)
        //箭头函数 函数体中 只有一个函数代码 没有其他函数代码 可以简写
        // let fn2=()=>{
        //     return 120
        // }
        let fn2=()=>120
       console.log(fn2());

       //let fn3=()=>{name:"张三"，age:18};
       let fn3=()=>({name:"张三",age:18});
       console.log(fn3());
       
       
    </script>
</body>
</html>